From ff10f688f94a8a297595f17c03fe6d19b3eb4cc8 Mon Sep 17 00:00:00 2001 From: "sd386@font.cl.cam.ac.uk" Date: Mon, 9 May 2005 16:52:35 +0000 Subject: [PATCH] bitkeeper revision 1.1346.1.4 (427f9553IVi9yymg7Hp6J5wwxNl-7Q) fixed CPU locking --- xen/common/schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 5a38a07507..9a04aae4c3 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -369,7 +369,7 @@ long sched_adjdom(struct sched_adjdom_cmd *cmd) cpu = ed->processor; if (!__get_cpu_bit(cpu, have_lock)) { /* if we don't have a lock on this CPU: acquire it*/ - if (!spin_trylock(&schedule_data[cpu].schedule_lock)) { + if (spin_trylock(&schedule_data[cpu].schedule_lock)) { /*we have this lock!*/ __set_cpu_bit(cpu, have_lock); succ = 1; -- 2.30.2